package main
import "fmt"
import "time"

type myTime struct{
  time.Time // anonymous field
}

func (t myTime) first3Chars() string{
  return t.Time.String()[0:3]
}

func main(){
  m		:= myTime{time.Now()}
  fmt.Println("Full time now:", m.String())
  fmt.Println("First 3 chars:", m.first3Chars())
}
